home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.unix.questions,comp.lang.c
  4. Subject: Re: Bold ASCII
  5. Date: Mon, 18 Mar 96 15:40:12 GMT
  6. Organization: none
  7. Message-ID: <827163612snz@genesis.demon.co.uk>
  8. References: <4i7cpj$hqa@nexen.nexen.com> <4ih7l2$ds@zeus.tcp.co.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4ih7l2$ds@zeus.tcp.co.uk> tendler@tcp.co.uk "Michael Tendler" writes:
  15.  
  16. >I thought you'd just set whatever colour you wanted like this: 
  17. >
  18. >----cut-----------
  19. >  _textcolor(WHITE);                 /* Change from grey to white text */
  20. >  printf("This is highlighted...");  /* Print string to screen */
  21. >  _textcolor(GRAY);                  /* Revert back to dullish grey */
  22. >----cut-----------
  23.  
  24. Only if you happen to be using an implementation that supports such functions
  25. and which have the required behaviour - these are not standard C.
  26.  
  27. >I pretty sure you have to include conio.h at the top of your program too.
  28.  
  29. conio.h is not a standard C header file. You actually cross-posted this to
  30. comp.unix.programmer - conio.h doesn't exist under Unix. In that case you'd
  31. probably use a different system-specific library - Curses.
  32.  
  33. -- 
  34. -----------------------------------------
  35. Lawrence Kirby | fred@genesis.demon.co.uk
  36. Wilts, England | 70734.126@compuserve.com
  37. -----------------------------------------
  38.